<?php for($i=0 ; $i<$this->numOfComp; $i++):?>
     <h3> Companion <?=($i+1)?>:</h3>
     <?= $this->forms[$i]?>
<?php endfor;?>
<form method="POST" id="submissionForm">
   <input type="hidden" id="formsDataCollector" name ="formsData" value=""/>
  <input type="button" value="Save All" onclick="submitAllForms(<?=$this->numOfComp?>);">
</form>
